home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Canadian & World Encyclopedia 1998
/
The Canadian & World Encyclopedia 1998 - Disc 2.iso
/
pc
/
pb
/
profile.dir
/
00681_Script_kf util processes
< prev
next >
Wrap
Text File
|
1997-07-29
|
808b
|
28 lines
-- parse pmterms list
global theList, rawData, pmcounter
on parsePMlist
set pmcounter = 0
set rawData = the text of field 307 of castlib "internal"
set theList = [:]
repeat while length(rawData) > 0
parseApm
end repeat
put theList
end
on parseApm
set theName = line 1 of rawData
delete line 1 of rawData
set theParty = line 1 of rawData
delete line 1 of rawData
set theTermTag = line 1 of rawData
delete line 1 of rawData
set theTermsList = []
repeat while line 1 of rawData <> EMPTY
append theTermsList, line 1 of rawData
delete line 1 of rawData
end repeat
delete line 1 of rawData
set pmcounter = pmcounter + 1
setaprop theList pmcounter, [#pmname: theName, #pmparty: theParty, #pmtermtag: thetermtag, #pmterms: theTermsList]
end